package com.gitee.wsl.common.chart.model

/**
 * @ClassName DotInfo
 * @Description  用于暂存点信息的类
 * @author XiongChuanLiang<br/>(xcl_168@aliyun.com)
 *
 */

class DotInfo() {

    var value = 0.0f

    var xValue = 0.0f
    var yValue = 0.0f

    var x = 0f
    var y = 0f

    constructor(value: Float, x: Float, y: Float):this() {
        this.value = value
        this.x = x
        this.y = y
    }

    constructor(xValue: Float, yValue: Float, x: Float, y: Float):this() {
        this.xValue = xValue
        this.yValue = yValue
        this.x = x
        this.y = y
    }

    val label:String
       get() = "$xValue,$yValue"

    /*fun getLabel(): String {
        return "$mXValue,$mYValue"
    }*/
}